<%@ Page Title="Attach or Detach Questions" Language="C#" MasterPageFile="~/Views/Shared/Employee.Master" Inherits="System.Web.Mvc.ViewPage<DomainModel.Entities.Job>" %>

<asp:Content ContentPlaceHolderID="TitleContent" runat="server">
	Attach or Detach Questions
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

<% using (Html.BeginForm("AttachDetachQuestions", "JobsManagement"))
{ %>

    <h2>Attach or Detach Questions for <%= Model.JobTitle%></h2>
    
    <div id="QuestionBank"><p><% Html.RenderPartial("AttachQuestionsTable", ViewData["questions"]); %></p></div>
    
    <script type="text/javascript">
        var t = new ScrollableTable(document.getElementById('AttachQuestionsTable'), 200);
    </script>
    
    <div id="AttachedQuestions"><p><% Html.RenderPartial("DetachQuestionsTable", ViewData["attachedquestions"]); %></p></div>
    
    <script type="text/javascript">
        var t = new ScrollableTable(document.getElementById('DetachQuestionsTable'), 100);
    </script>
    
<% } %>

</asp:Content>
